package com.ruoyi.center.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.center.mapper.ManagementTeamMapper;
import com.ruoyi.center.domain.ManagementTeam;
import com.ruoyi.center.service.IManagementTeamService;

/**
 * 管理团队Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-08
 */
@Service
public class ManagementTeamServiceImpl implements IManagementTeamService 
{
    @Autowired
    private ManagementTeamMapper managementTeamMapper;

    /**
     * 查询管理团队
     * 
     * @param id 管理团队主键
     * @return 管理团队
     */
    @Override
    public ManagementTeam selectManagementTeamById(Long id)
    {
        return managementTeamMapper.selectManagementTeamById(id);
    }

    /**
     * 查询管理团队列表
     * 
     * @param managementTeam 管理团队
     * @return 管理团队
     */
    @Override
    public List<ManagementTeam> selectManagementTeamList(ManagementTeam managementTeam)
    {
        return managementTeamMapper.selectManagementTeamList(managementTeam);
    }

    /**
     * 新增管理团队
     * 
     * @param managementTeam 管理团队
     * @return 结果
     */
    @Override
    public int insertManagementTeam(ManagementTeam managementTeam)
    {
        return managementTeamMapper.insertManagementTeam(managementTeam);
    }

    /**
     * 修改管理团队
     * 
     * @param managementTeam 管理团队
     * @return 结果
     */
    @Override
    public int updateManagementTeam(ManagementTeam managementTeam)
    {
        return managementTeamMapper.updateManagementTeam(managementTeam);
    }

    /**
     * 批量删除管理团队
     * 
     * @param ids 需要删除的管理团队主键
     * @return 结果
     */
    @Override
    public int deleteManagementTeamByIds(Long[] ids)
    {
        return managementTeamMapper.deleteManagementTeamByIds(ids);
    }

    /**
     * 删除管理团队信息
     * 
     * @param id 管理团队主键
     * @return 结果
     */
    @Override
    public int deleteManagementTeamById(Long id)
    {
        return managementTeamMapper.deleteManagementTeamById(id);
    }
}
